
import request from "@/utils/request";
import { AxiosPromise } from "axios";

const URL = {
  updateBasicConfig: '/platformApi/updateBasicConfig',
  getBasicNameByOther: '/platformApi/getBasicName',
  getBasicNameByPayer: '/payerApi/getBasicName',
  getBasicNameByPayee: '/skfApi/getBasicName',
};

export function getBasicNameByOther(params?: object): AxiosPromise<any> {
  return request({
    url: URL.getBasicNameByOther,
    method: "get",
    params,
  });
}
export function getBasicNameByPayer(params?: object): AxiosPromise<any> {
  return request({
    url: URL.getBasicNameByPayer,
    method: "get",
    params,
  });
}
export function getBasicNameByPayee(params?: object): AxiosPromise<any> {
  return request({
    url: URL.getBasicNameByPayee,
    method: "get",
    params,
  });
}

export function updateBasicConfig(data: object): AxiosPromise<any> {
  return request({
    url: URL.updateBasicConfig,
    method: "post",
    data: data,
  });
}
